
package org.springxrsk.modules.signup.service.impl;

import org.springxrsk.modules.signup.pojo.entity.QyStudentsOrderBelongEntity;
import org.springxrsk.modules.signup.pojo.vo.QyStudentsOrderBelongVO;
import org.springxrsk.modules.signup.excel.QyStudentsOrderBelongExcel;
import org.springxrsk.modules.signup.mapper.QyStudentsOrderBelongMapper;
import org.springxrsk.modules.signup.service.IQyStudentsOrderBelongService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 订单业绩归属 服务实现类
 *
 *  @author
 * @since 2024-06-19
 */
@Service
public class QyStudentsOrderBelongServiceImpl extends BaseServiceImpl<QyStudentsOrderBelongMapper, QyStudentsOrderBelongEntity> implements IQyStudentsOrderBelongService {

	@Override
	public IPage<QyStudentsOrderBelongVO> selectQyStudentsOrderBelongPage(IPage<QyStudentsOrderBelongVO> page, QyStudentsOrderBelongVO qyStudentsOrderBelong) {
		return page.setRecords(baseMapper.selectQyStudentsOrderBelongPage(page, qyStudentsOrderBelong));
	}


	@Override
	public List<QyStudentsOrderBelongExcel> exportQyStudentsOrderBelong(Wrapper<QyStudentsOrderBelongEntity> queryWrapper) {
		List<QyStudentsOrderBelongExcel> qyStudentsOrderBelongList = baseMapper.exportQyStudentsOrderBelong(queryWrapper);
		//qyStudentsOrderBelongList.forEach(qyStudentsOrderBelong -> {
		//	qyStudentsOrderBelong.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyStudentsOrderBelong.getType()));
		//});
		return qyStudentsOrderBelongList;
	}

}
